home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-04-08 | 7.2 KB | 179 lines | [TEXT/CCL2] |
- Ruben Kleiman's Mini-Application
-
- About Mini-App
- ==============
-
- Last edit 3/12/92 slm.
-
-
- Mini-Application for MCL2.
-
- Mini-Application is an MCL2 example program developed by Ruben
- Kleiman. Source and the tutorial documentation are in the
- "Mini-Application" folder that also contains this file.
- Ruben wrote them to accompany his landmark article
- "The Power of Macintosh Common Lisp".
-
- Mini-Application is Copyright 1990, 1991 by Ruben Kleiman for
- Apple Computer, Inc.
-
-
- On-disk documentation.
-
- File "All about the Mini-App" has not been changed, and is still
- current. It is provided in MacWrite, Word and Text formats, and
- contains "All About the MiniLisp Application", an article that
- takes you step by step through the development of the Mini-
- Application. (Note: for "MACL" read "MCL" throughout.)
-
- The "Power of MCL" article is also still current, and can be
- found on recent Developer CD ROMs in the "develop Issue 5" stack.
-
- File "READ ME FIRST" (which was provided in MacWrite and Word
- formats), has been superseded by the file you are reading, and
- the file "Instructions".
-
-
- Mini-Application conversion to MCL2.
-
- Mini-Application was updated to MCL 2.0 final by Steven L Mitchell
- during 1Q92, with permission. This version requires MCL 2.0 final,
- and will NOT run under MCL 2.0b1.
- Bug reports and comments can be sent to me at STEVE.M on AppleLink,
- <STEVE.M@applelink.apple.com>, but neither I nor anyone else
- promises to do anything about them.
-
- Disclaimer: The enclosed source is released unsupported, has undergone
- limited testing in MCL 2.0, and will not work in any other
- version of MCL. In particular it will not work in MCL 2.0b1.
-
- The documentation/articles have NOT been converted, and are still current.
-
-
- Original publication.
-
- The article was published in "develop", Vol 2, Issue 1, Winter 1991.
- The original Mini-Application source was included on a CD ROM.
-
- That issue is also available on Developer CDs as "develop Issue 5",
- and the code is in the "develop 5 code" folder.
-
- Note: The original source was developed in MCL 2.0a2p4 and will
- not work in any released version of MCL.
-
-
- Mini-Application is a Tutorial.
-
- The Mini-Application is a Tutorial on writing an MCL2 application.
- It is not a tutorial on CLOS. As an exercise you could do the following:
- - replace all references to slot-value by defining accessor methods
- - use copy-instance to "clone" draw-items in clone-draw-item in
- draw-item-class.lisp
- - drop the 'tool slot from draw-item and recognise instances of the
- icon-draw-item subclass by their class. Then instead of testing
- the value of the 'tool slot in maybe-drag in draw-item-class.lisp,
- define a method for icon-draw-items.
- It is not an example of scriptED systems. As with HyperCard you have
- to write the scripts yourself! See "All about the Mini-App" for
- info on the 7 types of handlers.
-
-
- Further reading.
-
- In addition to the biblio at the end of the develop article, see:
-
- 1. C++/MacApp 3.0 article, Apple Direct Vol 1, No 5, February 1992.
-
- 2. The CL book of the decade is: "Paradigms of AI Programming: Case
- Studies in CL" by Peter Norvig, Morgan Kaufman, San Mateo, CA,
- 1992, $39.95.
-
-
- Running the Mini-Application.
-
- To try out the Mini-Application, copy the Mini-Application folder
- into your MCL folder, (make sure it is named "Mini-Application"),
- then evaluate:
-
- (load "ccl:Mini-Application;build-and-run-mini-app.lisp")
-
- See file "Instructions" for details.
-
-
- File changes since the version published in develop.
-
- File has been replaced by File(s)
- ---- -------
-
- READ ME FIRST.mw About Mini-App
- Instructions
- Where to buy MCL
-
- READ ME FIRST.word About Mini-App
- Instructions
- Where to buy MCL
-
- Read Me First.lisp build-and-run-mini-app.lisp
- (also known as example.lisp) mini-app-example.lisp
- start-application.lisp
- Instructions
-
- example.lisp build-and-run-mini-app.lisp
- mini-app-example.lisp
- start-application.lisp
- Instructions
-
- mini-application-loader.lisp build-and-run-mini-app.lisp
- start-application.lisp
-
- compile-mini-application.lisp build-and-run-mini-app.lisp
-
-
-
- Files that have not been replaced Changes
- --------------------------------- -------
-
- All about the Mini-App.mw None
-
- All about the Mini-App.word None
-
- All about the Mini-App.text New. Text version of files above with miniscule
- corrections. It lacks the figures, but cross-
- references to them in the develop article.
-
- globals.lisp Located in the "Program" subfolder.
-
- utilities.lisp Located in the "Program" subfolder.
-
- draw-dialog-class.lisp Located in the "Program" subfolder.
- Since Ruben wrote this file, a number of new
- event handlers have been introduced, such as:
- view-mouse-enter-event-handler. Actually, only
- the protocols have been defined in MCL2, in the
- form of generic functions without methods (or
- with null default methods). The tutorial shows
- where these gfs are invoked during event
- processing. The reader can change the program by
- defining such methods and see how that would
- simplify a more complex program, by reducing
- the burden on the window-null-event-handler, in
- particular.
-
- menus.lisp Located in the "Program" subfolder.
-
- palette-class.lisp Located in the "Program" subfolder.
-
- draw-item-class.lisp Located in the "Program" subfolder.
-
- default-handlers.lisp Located in the "Program" subfolder.
-
- resources Located in the "Program" subfolder.
- Added B&W versions of the icons so B&W Macs
- no longer crash!
-
- Program .fasl files Located in the "Program" subfolder.
-
-
- end of file About Mini-App
- -----------------------------------------
-